import request from '@/utils/request'
export default {
    //带条件带分页查询医院列表
    getHospitalByPageAndCondition(page, limit, hospitalSearchObj) {
        return request({
            url: `/admin/hosp/hospital/queryByPageAndCondition/${page}/${limit}`,
            method: 'get',
            params: hospitalSearchObj
        })
    },
    //根据字典code查询下级数据字典
    getDictionaryChildByDictCode(dictCode) {
        return request({
            url: `/admin/cmn/dict/getByDictCode/${dictCode}`,
            method: 'get'
        })
    },
    //根据id查询下级数据字典
    getDictionaryByDictId(dictId) {
        return request({
            url: `/admin/cmn/dict/getByDictId/${dictId}`,
            method: 'get'
        })
    },
    //更新医院上线状态
    updateStatus(hosId, status) {
        return request({
            url: `/admin/hosp/hospital/updateStatus/${hosId}/${status}`,
            method: 'get'
        })
    },
    //查看医院详情
    getHospitalInfoById(id) {
        return request({
            url: `/admin/hosp/hospital/getHospitalInfo/${id}`,
            method: 'get'
        })
    },
    //查询所有科室
    getDepartmentList(hoscode){
        return request({
            url:`/admin/hosp/department/getDepartmentList/${hoscode}`,
            method:'get'
        })
    }
}